package lxy;

public class test1 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.age=15;
        dog.name="小铭";
        dog.weight=46;
        System.out.println(dog.say());
    }
}
class Dog{
    String name;
    int age;
    double weight;
    public  String say(){
        String say= "我叫" + name + ", "+" 年龄" +age+","  + ", 体重为" +weight+"kg";
        return say;
    }
}
